Loading TOC...

MarkLogic 9 Product Documentation
GET /manage/v2/packages/{pkgname}/servers

Summary

[DEPRECATED: use GET /manage/v3 and POST /manage/v3 instead.]

This resource address returns a list of the servers in the named package (pkgname).

URL Parameters
start The start position of the list. For example, if there are a total of 50 servers in the package and the pageLength is set to 5, then start=2 returns a list of 5 servers, starting with the sixth server (servers 6-10).
pageLength The number of servers to return in each list.
format The format of the output. This can be either xml or json.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, either application/xml or application/json.

Response

Upon success, MarkLogic Server returns status code 200 (OK). The response body contains the requested data.

Required Privileges

This operation requires the manage-user role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Example


    http:/localhost:8002/manage/v2/packages/test-package/servers?pageLength=5&start=2

    ==> Returns a list of the second set of 5 servers in the'test-package' package.  

    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.